
<!DOCTYPE html>
<html lang="en-us">

    <include file="Common/Common/head" />  
    <body class="desktop-detected pace-done smart-style-3">

        <!-- #HEADER -->
    <include file="Common/Common/header" />
    <!-- END HEADER -->

    <!-- #NAVIGATION -->
    <include file="Widget/Common/navigation" />
    <!-- END NAVIGATION -->

    <!-- #MAIN PANEL -->
    <div id="main" role="main">

        <!-- RIBBON -->
        <div id="ribbon">

            <!-- breadcrumb -->
            <ol class="breadcrumb">
                <li>{$module_name}</li>					
            </ol>
            <!-- end breadcrumb -->
        </div>
        <!-- END RIBBON -->

        <!-- #MAIN CONTENT -->
        <div id="content">
            <div class="row">
                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-4">
                    <h1 class="page-title txt-color-blueDark">	
                        <!-- PAGE HEADER -->
                        <i class="fa-fw fa fa-home"></i> 
                        {$first_title}
                        <span>>  
                            {$second_title}
                        </span>
                    </h1>
                </div>

            </div>

            <!-- widget grid -->
            <section id="widget-grid" class="">

                <!-- row -->
                <div class="row">

                    <!-- NEW WIDGET START -->
                    <article class="col-xs-12 col-sm-12 col-md-12 col-lg-12 sortable-grid ui-sortable">

                        <!-- Widget ID (each widget will need unique ID)-->
                        <div class="jarviswidget jarviswidget-color-white" id="wid-id-0" data-widget-colorbutton="false" data-widget-editbutton="false" data-widget-togglebutton="false" data-widget-deletebutton="false" data-widget-sortable="false">
                            <!-- widget options:
                                    usage: <div class="jarviswidget" id="wid-id-0" data-widget-editbutton="false">				
                                    data-widget-colorbutton="false"
                                    data-widget-editbutton="false"
                                    data-widget-togglebutton="false"
                                    data-widget-deletebutton="false"
                                    data-widget-fullscreenbutton="false"
                                    data-widget-custombutton="false"
                                    data-widget-collapsed="true"
                                    data-widget-sortable="false"				
                            -->
                            <header>
                                <span class="widget-icon"> <i class="fa fa-edit"></i> </span>
                                <h2>添加</h2>
                            </header>

                            <!-- widget div-->
                            <div>

                                <!-- widget edit box -->
                                <div class="jarviswidget-editbox">
                                    <!-- This area used as dropdown edit box -->				
                                </div>
                                <!-- end widget edit box -->

                                <!-- widget content -->
                                <div class="widget-body">				
                                    <form class="form-horizontal" action="{:U('product_modify')}" data-toggle="validator" role="form" method="post" enctype="multipart/form-data">
                                        <input type="hidden" name="pid" value="{$list.pid}">
                                        <fieldset>
                                            <!-- <div class="form-group">
                                                            <label class="col-md-2 control-label">选择分类</label>
                                                            <div class="col-md-10">
                                                                    <select class="form-control" id="classify_id" name="cid">
                    <volist name='classify' id='vo'>
                        <option value="{$vo.cid}">{$vo.name}</option>
                    </volist>	
                                                                    </select>
                                                            </div>
                                                    </div> -->
                                            <!--                                            <div class="form-group">
                                                                                            <label class="col-md-2 control-label">品牌</label>
                                                                                            <div class="col-md-10">
                                                                                                <input type="text" name="brand" class="form-control" placeholder="品牌" data-error="品牌不能为空，请输入品牌！" value="{$list.brand}" required>
                                                                                                <span class="glyphicon form-control-feedback" aria-hidden="true"></span>
                                                                                                <div class="help-block with-errors"></div>
                                                                                            </div>
                                                                                        </div>-->
                                            <div class="form-group">
                                                <label class="col-md-2 control-label"></label>
                                                <div class="col-md-10">
                                                    <img src="{$list.thumb}" class="btn btn-default">
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-md-2 control-label">图片</label>
                                                <div class="col-md-10">
                                                    <input type="file" name="thumb" class="btn btn-default">
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-md-2 control-label">名字</label>
                                                <div class="col-md-10">
                                                    <input type="text" name="name" class="form-control" value="{$list.name}" placeholder="产品名">
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-md-2 control-label">参赛编号</label>
                                                <div class="col-md-10">
                                                    <input type="text" name="vote_num" class="form-control" value="{$list.vote_num}" placeholder="编号">
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-md-2 control-label">美丽宣言</label>
                                                <div class="col-md-10">
                                                    <input type="text" name="slogan" class="form-control" value="{$list.slogan}" placeholder="美丽宣言">
                                                </div>
                                            </div>
                                            <!--                                            <div class="form-group">
                                                                                            <label class="col-md-2 control-label">规格</label>
                                                                                            <div class="col-md-10">
                                                                                                <input type="text" name="spec" class="form-control" value="{$list.spec}" placeholder="规格">
                                                                                            </div>
                                                                                        </div>
                                                                                        <div class="form-group">
                                                                                            <label class="col-md-2 control-label">厂商</label>
                                                                                            <div class="col-md-10">
                                                                                                <input type="text" name="factory" class="form-control" value="{$list.factory}" placeholder="厂商">
                                                                                            </div>
                                                                                        </div>-->
                                            <!-- <div class="form-group">
                                                    <label class="col-md-2 control-label">票数</label>
                                                    <div class="col-md-10">
        <input type="text" name="votes" class="form-control" placeholder="票数">
                                                    </div>
                                            </div> -->

                                            <!-- <div class="form-group">
                                                    <label class="col-md-2 control-label">是否显示</label>
                                                    <div class="col-md-10">
            <label class="radio radio-inline">
                <input type="radio" class="radiobox" value="0" name="isvisible" checked>
                <span>显示</span>  
            </label>
            <label class="radio radio-inline">
                <input type="radio" class="radiobox" value="1" name="isvisible">
                <span>隐藏</span> 
            </label>
                                                    </div>
                                            </div> -->

                                        </fieldset>
                                        <div class="form-actions">
                                            <div class="row">
                                                <div class="col-md-12">
                                                    <button class="btn btn-default" onclick="history.go(-1)" type="button">返回</button>
                                                    <button class="btn btn-primary" type="submit">保存</button>
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                                <!-- end widget content -->

                            </div>
                            <!-- end widget div -->

                        </div>
                        <!-- end widget -->

                    </article>
                    <!-- WIDGET END -->

                </div>			
                <!-- end row -->

                <!-- end row -->

            </section>
            <!-- end widget grid -->

        </div>

        <!-- end row -->

        <!-- END #MAIN CONTENT -->

    </div>
    <!-- END #MAIN PANEL -->

    <!-- #PAGE FOOTER -->

    <include file="Common/Common/footer" />

    <script src="{$resource_path}js/app.config.js"></script>

    <!-- JS TOUCH : include this plugin for mobile drag / drop touch events-->
    <script src="{$resource_path}js/plugin/jquery-touch/jquery.ui.touch-punch.min.js"></script> 

    <!-- BOOTSTRAP JS -->
    <!--<script src="{$resource_basic}js/bootstrap/bootstrap.min.js"></script>-->



    <!-- JARVIS WIDGETS -->
    <script src="{$resource_path}js/smartwidgets/jarvis.widget.min.js"></script>

    <!-- plugin -->
    <script src="{$resource_path}js/plugin/bootstrap-timepicker/bootstrap-timepicker.min.js"></script>
    <script src="{$resource_path}js/plugin/bootstrap-tags/bootstrap-tagsinput.min.js"></script>
    <!-- bootstrap validator -->
    <script src="{$resource_path}js/plugin/bootstrap-validator/validator.min.js"></script> 
    <!-- umeditor -->
    <script type="text/javascript" src="__PUBLIC__/umeditor/umeditor.config.js"></script>
    <script type="text/javascript" src="__PUBLIC__/umeditor/umeditor.js"></script>
    <script type="text/javascript">

                                                        // DO NOT REMOVE : GLOBAL FUNCTIONS!
                                                        // (function($){
                                                        //   window.um = UM.getEditor('container', {
                                                        //      传入配置参数,可配参数列表看umeditor.config.js 
                                                        //     //toolbar: ['undo redo | bold italic underline']
                                                        //   });
                                                        // })(jQuery);
                                                        $(document).ready(function () {

                                                            pageSetUp();
                                                        })

    </script>		
</body>
</html>